import request from '@/utils/request.js';
import { rsaEncrypt } from '@/utils/commonUtil3';
// 登录
export const reqLogin = data => request({ url: '/login', method: 'POST', data });
// 查询用户列表
export const reqUserList = data => request({ url: '/user/select', method: 'GET', params: data });
// 新增门店用户
export const reqAddUser = data => request({ url: '/user/insert', method: 'POST', data: { data: rsaEncrypt(data) } });
// 获取角色列表
export const reqRoleList = data => request({ url: '/role/getForInsert', method: 'GET', params: data });
// 修该门店角色
export const reqUpdateUser = data => request({ url: '/user/update', method: 'PUT', data: { data: rsaEncrypt(data) } });
// 删除门店角色
export const reqDelUser = data => request({ url: '/user/delete', method: 'DELETE', data: { data: rsaEncrypt(data) } });
// 重置密码
export const reqResetPassWord = data => request({ url: '/user/resetPWD', method: 'POST', data: { data: rsaEncrypt(data) } });
// 版本更新包获取
export const reqUpdateApp = data => request({ url: '/updatePackage/selectUpdatePackage', method: 'GET', params: data });
// 根据用户获取门店信息
export const reqStoreInfoByApp = data => request({ url: '/getStoreInfoByApp', method: 'GET', params: data });
// 退出登录
export const reqLogout = data => request({ url: '/loginOut', method: 'GET', data });
// 获取用户信息
export const reqStoreInfo = data => request({ url: '/getStoreInfo', method: 'GET', params: data });
// 获取轮播图
export const reqBannerList = data => request({ url: '/carousel/select/show', method: 'GET', params: data });